package com.omg.persistence.dao.lifepoint.sqlmapdao;

import com.ibatis.dao.client.DaoManager;
import com.ibatis.dao.client.template.SqlMapDaoTemplate;
import com.omg.persistence.dao.lifepoint.entity.LPFriendRelation;
import com.omg.persistence.dao.lifepoint.iface.LPFriendRelationDao;

/**
 * 
 * @author xiazhiquan
 * 
 *         May 28, 2011
 */
public class LPFriendRelationSqlMapDao extends SqlMapDaoTemplate implements
		LPFriendRelationDao {

	public LPFriendRelationSqlMapDao(DaoManager daoManager) {
		super(daoManager);
	}

	@Override
	public int addLPFriendRelation(LPFriendRelation lpFriendRelation) {
		try {
			this.insert("addLPFriendRelation", lpFriendRelation);
			return 0;
		} catch (Exception e) {
			e.printStackTrace();
			return -1;
		}
	}

}
